package com.ciquan.server.service.impl;

import com.ciquan.server.bean.PraiseRecord;
import com.ciquan.server.bean.UserInfo;
import com.ciquan.server.dao.PraiseRecordMapper;
import com.ciquan.server.service.PraiseRecordService;
import com.ciquan.server.util.web.ParameterMap;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * Created by card on 2015/8/30.
 */
@Service
public class PraiseRecordServiceImpl implements PraiseRecordService{

    @Resource
    private PraiseRecordMapper praiseRecordMapper;

    @Override
    public int insert(PraiseRecord praiseRecord) {
        return praiseRecordMapper.insert(praiseRecord);
    }

    @Override
    public int delete(PraiseRecord praiseRecord) {
        return praiseRecordMapper.delete(praiseRecord);
    }

    @Override
    public List<UserInfo> selectList(ParameterMap map) {
        return praiseRecordMapper.selectList(map);
    }

    @Override
    public int selectCount(Map<String, Object> map) {
        return praiseRecordMapper.selectCount(map);
    }

    @Override
    public List<PraiseRecord> selectTop() {
        return praiseRecordMapper.selectTop();
    }

    @Override
    public List<PraiseRecord> praiseList(ParameterMap map) {
        return praiseRecordMapper.praiseList(map);
    }
}
